package com.taokatao.cardmee.business.carddetail;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

public class CardDetailItemLayout extends FrameLayout {

    public CardDetailItemLayout(Context context) {
        this(context, null);
    }

    public CardDetailItemLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int widthSize = MeasureSpec.getSize(widthMeasureSpec);
        int heightSize = (int) (widthSize * 0.632f);
        super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(heightSize, MeasureSpec.EXACTLY));
    }
}
